package cn.jbolt.common.base;

/**
 * Created by xyzx1 on 2017-05-09.
 */
public enum MsgCodeEnum {
    REQUEST_SUCCESS_0(0,"成功"),
    UNKNOWN_ERROR_1(1, "未知错误"),
    REQUEST_FAIL_2(2, "失败"),
    BLACK_LIST_6(6,"黑名单中，禁⽌止访问"),
    FREQUENT_REQUEST_9(9, "请求太频繁"),
    PERMISSION_DENIED_10(10, "权限不足"),
    PARAM_ERROR_12(12,"参数错误"),
    NOT_FOUND_13(13,"没有该设备信息"),
    NOT_LOGIN_14(14,"未登录"),
    DEVICE_NOT_BIND_34001(34001,"设备当前状态不可绑定"),
    DEVICE_IS_BIND_34002(34002,"设备已经被其他设备绑定")
    ;
    private Integer code;
    private String msg;
    private MsgCodeEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
    public Integer getCode() {
        return code;
    }
    public String getMsg() {
        return msg;
    }
}
